﻿using System.Collections.Generic;
using WGS84;

namespace CIAWorldMap
{
    public class Place
    {
        public Wgs84Coordinate _Wgs84Coordinate;
   
        public double _population;
        public Dictionary<string, object> _names = new Dictionary<string, object>();

        public Place(Wgs84Coordinate wgs84Coordinate)
        {
            _Wgs84Coordinate = wgs84Coordinate;
        }

        public void Add(string placeName)
        {
            if (_names.ContainsKey(placeName))
                return;
            _names.Add(placeName, null);
        }

        public void AddPopulation(string pop)
        {
            if (pop == "")
                return;

            _population = double.Parse(pop);
        }
    }
}
